package com.kaifamiao.jdbc.core;

public class DbHelperTest1 {

    public static void main(String[] args) {
        // 首先获得 DbHelper实例
        DbHelper dh = DbHelper.getInstance();

        // "执行"DML语句
        int count = dh.execute( "DELETE FROM t_pandas" );
        System.out.println( count );

        count = dh.execute( "INSERT INTO t_pandas (name) VALUES ( '小菲' ), ('小尔'), ('小娜')" );
        System.out.println( count );

        count = dh.execute( "UPDATE t_pandas SET name = '哪吒' WHERE name = '小娜'" );
        System.out.println( count );

        // 最后释放连接
        dh.release();
    }

}
